package com.px.chapter_Dec_1.russianGame;


import javafx.scene.Node;

import javax.swing.*;

import javax.swing.*;

public class TetrisMain extends JFrame {
    public TetrisMain() {

        setSize(600,600);
        setVisible(true);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setLocation(300,100);
        setLayout(null);
        GamePanel gamePanel=new GamePanel();
        add(gamePanel);
        gamePanel.setFocusable(true);
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new TetrisMain();
            }
        });
    }
}